home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / BallBreaker.swf / scripts / frame_12 / PlaceObject2_85_14 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2006-06-13  |  513 b   |  27 lines

  1. onClipEvent(enterFrame){
  2.    if(str ne "bonus2")
  3.    {
  4.       if(255 < _Y)
  5.       {
  6.          this.removeMovieClip();
  7.       }
  8.       _Y = _Y + 2;
  9.    }
  10.    if(this.hitTest(_root.ship))
  11.    {
  12.       if(3 < _root.vars.miss)
  13.       {
  14.          _root.gotoAndPlay("over");
  15.       }
  16.       else
  17.       {
  18.          _root.gotoAndPlay("miss");
  19.       }
  20.       _root.vars.gameon = 0;
  21.       set("_root.vars.:ballx",3);
  22.       set("_root.vars.:bally",-3);
  23.       _root.func.miss();
  24.       this.removeMovieClip();
  25.    }
  26. }
  27.